package com.xyz.practice.jdbc.databasemetadata;

import java.io.Serializable;


public class PrimaryKey implements Serializable {

  private static final long serialVersionUID = 5318323189946727916L;

  PrimaryKey() {}
  /**
   * table catalog (may be null)
   */
  private String tableCat;
  /**
   * table schema (may be null)
   */
  private String tableSchem;
  /**
   * table name
   */
  private String tableName;
  /**
   * column name
   */
  private String columnName;
  /**
   * sequence number within primary key( a value of 1 represents the first column of the primary key, a value of 2 would represent the second column within the primary key).
   */
  private short keySeq;
  /**
   * primary key name (may be null)
   */
  private String pkName;

  String getTableCat() {
    return tableCat;
  }

  void setTableCat( String tableCat ) {
    this.tableCat = tableCat;
  }

  String getTableSchem() {
    return tableSchem;
  }

  void setTableSchem( String tableSchem ) {
    this.tableSchem = tableSchem;
  }

  String getTableName() {
    return tableName;
  }

  void setTableName( String tableName ) {
    this.tableName = tableName;
  }

  String getColumnName() {
    return columnName;
  }

  void setColumnName( String columnName ) {
    this.columnName = columnName;
  }

  short getKeySeq() {
    return keySeq;
  }

  void setKeySeq( short keySeq ) {
    this.keySeq = keySeq;
  }

  String getPkName() {
    return pkName;
  }

  void setPkName( String pkName ) {
    this.pkName = pkName;
  }

}
